/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.evangelion.core.serviceImpl;

import com.evangelion.core.bean.Alumno;
import com.evangelion.core.bean.Seccione;
import com.evangelion.core.dao.AlumnoDao;
import com.evangelion.core.daoImpl.AlumnoDaoImpl;
import com.evangelion.core.service.AlumnoService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author Usuario
 */
@Service
public class AlumnoServiceImpl implements AlumnoService {

    @Autowired
    AlumnoDaoImpl alumnoDao = new AlumnoDaoImpl();

    @Override
    public void save(Alumno alumno) {
        alumnoDao.save(alumno);
    }

    @Override
    public void delete(Alumno alumno) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public Alumno find(Alumno alumno) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public Alumno findObjByParam(String parametro, String valor) throws Exception {
        return (Alumno) alumnoDao.findObjByParam(Alumno.class, parametro, valor);
    }

    @Override
    public List<Alumno> findByParam(String parametro, String valor) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List<Alumno> ListActive(Alumno alumno) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List<Alumno> searchByNifNombre(Seccione seccion, String valor, int start, int max) {
        return (List) alumnoDao.searchByNifNombre(seccion, valor, start, max);
    }

    @Override
    public List<Alumno> findListByParam(String parametro, String valor) {
        return (List) alumnoDao.findListByParam(Alumno.class, parametro, valor);
    }

    @Override
    public int countPage(Seccione seccion, String valor) {
        return (int) alumnoDao.countPage(seccion, valor);
    }
}
